import axiosInstance from './base'
import CryptoJS from 'crypto-js'

export function login(username: string, password: string) {
  // 对password进行sha256加密
  password = CryptoJS.SHA256(password).toString()
  return axiosInstance.post('/users/login', {
    username: username,
    password: password,
  })
}
